package com.innjia.sys.service.impl;

import com.innjia.base.utils.Utils;
import com.innjia.sys.dao.HouseOperationLogDao;
import com.innjia.sys.entity.HouseOperationLogEntity;
import com.innjia.sys.service.HouseOperationLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service("houseOperationLogService")
public class HouseOperationLogServiceImpl implements HouseOperationLogService {
	@Autowired
	private HouseOperationLogDao houseOperationLogDao;
	
	@Override
	public HouseOperationLogEntity queryObject(String id){
		return houseOperationLogDao.queryObject(id);
	}
	
	@Override
	public List<HouseOperationLogEntity> queryList(Map<String, Object> map){
		return houseOperationLogDao.queryList(map);
	}

    @Override
    public List<HouseOperationLogEntity> queryListByBean(HouseOperationLogEntity entity) {
        return houseOperationLogDao.queryListByBean(entity);
    }
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return houseOperationLogDao.queryTotal(map);
	}
	
	@Override
	public int save(HouseOperationLogEntity houseOperationLog){
		houseOperationLog.setId(Utils.uuid());
		return houseOperationLogDao.save(houseOperationLog);
	}
	
	@Override
	public int update(HouseOperationLogEntity houseOperationLog){
        return houseOperationLogDao.update(houseOperationLog);
	}
	
	@Override
	public int delete(String id){
        return houseOperationLogDao.delete(id);
	}
	
	@Override
	public int deleteBatch(String[] ids){
        return houseOperationLogDao.deleteBatch(ids);
	}
	
}
